package com.hawk.eye.common.client;

import com.hawk.eye.common.utils.http.JdkHttpUtil;

import java.util.Map;

/**
 * todo 在考虑是否移除，因为不支持配置连接池
 * @className: JdkHttpClient
 * @description:
 * @author: salad
 * @date: 2023/10/10
 **/
public class JdkHttpClient implements IClient {

    @Override
    public String pushLogMessage(String url, Map<String, String> header, String json) {
        return JdkHttpUtil.sendPost(url, header, json);
    }

    @Override
    public String pushMetadata(String url, String json) {
        return JdkHttpUtil.sendPost(url, json);
    }

}
